package cn.gz.lbs.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import cn.gz.zoomtech.common.db.DbHandle;

public class SPDayCountBlankService {

	private static final Log log = LogFactory.getLog(SPDayCountBlankService.class);
	private static boolean isRunning = false;

	public SPDayCountBlankService() {

	}

	public void doWork() {

		// 检查任务是否在运行，如果已经运行则退出
		if (SPDayCountBlankService.isRunning) {
			log.error("Exit:SPDayCountBlankService is running");
			return;
		}

		log.info("**** SPDayCountBlankService Start ****");
		SPDayCountBlankService.isRunning = true;
		
		DbHandle dbh = new DbHandle();
		dbh.updateCmsUserReqCountToZero();
		
		SPDayCountBlankService.isRunning = false;
		log.info("**** SPDayCountBlankService End ****");

	}
}
